package com.example.demo.entity.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

/**
 *  表定义层。
 *
 * @author zql
 * @since 2023-11-17
 */
public class RoleTableDef extends TableDef {

    /**
     * 
     */
    public static final RoleTableDef ROLE = new RoleTableDef();

    
    public final QueryColumn ID = new QueryColumn(this, "id");

    
    public final QueryColumn ROLE_KEY = new QueryColumn(this, "roleKey");

    
    public final QueryColumn ROLE_NAME = new QueryColumn(this, "roleName");

    
    public final QueryColumn DESCRIPTION = new QueryColumn(this, "description");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, ROLE_KEY, ROLE_NAME, DESCRIPTION};

    public RoleTableDef() {
        super("", "tb_role");
    }

}
